package util

import jsoniter "github.com/json-iterator/go"

func GetJsonStyle(data interface{}) string {
	if data == nil {
		return ""
	}
	d, err := jsoniter.MarshalToString(&data)
	if err != nil {
		return ""
	}
	return d
}
